﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using Xyz.BusinessObjects.Validation;

namespace Xyz.BusinessObjects
{
    public class Aircraft : BusinessObject
	{
        public Aircraft () {
            AddRule(new ValidateMandatory("AircraftName"));
            AddRule(new ValidateMandatory("TotalRow"));
            AddRule(new ValidateMandatory("TotalCol"));
            AddRule(new ValidateMandatory("TotalSeat"));
        }
        public int AircraftId { get; set; }
        public string AircraftName { get; set; }
        public int? TotalRow { get; set; }
        public int? TotalCol { get; set; }
        public int? TotalSeat { get; set; }
        public List<AircraftSeat> AircraftSeats { get; set; }	
	}
}


